﻿using AuthenticationServer.Data.Identity.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace AuthenticationServer.Data.Identity.Configuration
{
    public class UserConfiguration : BaseEntityTypeConfiguration<User>
    {
        public override void Configure(EntityTypeBuilder<User> entityTypeBuilder)
        {
            base.Configure(entityTypeBuilder);
            entityTypeBuilder.ToTable(IdentityTableNames.User);

            //entityTypeBuilder.Property(x => x.Id)
            //                 .HasColumnType("TINYINT UNSIGNED");
            //entityTypeBuilder.Property(x => x.DescriptionUrl)
            //                 .HasColumnType("TEXT");
            //entityTypeBuilder.Property(x => x.Name)
            //                 .HasColumnType("VARCHAR(126)")
            //                 .IsRequired();
        }
    }
}
